﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace QLACQUY.DAO
{
    class DataAccess
    {
        public OleDbConnection DataConnection()
        {
            string appPath = Environment.CurrentDirectory;           
            string cn_Str = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\acquydatabase.mdb";
            OleDbConnection cn = new OleDbConnection(cn_Str);
            //cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=acquydatabase.mdb";
            cn.Open();
            return cn;

        }
    }
}
